class BootStrap {

    def init = {servletContext ->
        def colors = ['red','yellow','blue']
        (1..100).each {
            new Demo(
                    name: "Fake Person Numero $it",
                    birthDate: new GregorianCalendar(1900 + it, 1, 1).time,
                    age: 30 + it,
                    favoriteColors: colors[it % 3],
                    isDumb: it % 3 == 0,
                    gender: it % 4 == 0 ? 'male' : 'female',
                    netWorth: 123.45 * it,
            ).save()
        }
    }
    def destroy = {
    }
} 